package com.leo.quartz.controller;

import com.leo.base.AbstractController;
import com.leo.quartz.common.lang.PageView;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author liusl
 * @version 1.0
 * @date 2018/12/6 21:00
 */
@Controller
public class ErrorController extends AbstractController {

    @RequestMapping("/404.html")
    public ModelAndView error404(){
        return buildModelAndView(PageView.ERROR_404);
    }

    @RequestMapping("/500.html")
    public ModelAndView error500(){
        return buildModelAndView(PageView.ERROR_404);
    }
}
